package com.jake.jacoco.builder;

import org.apache.commons.lang3.StringUtils;

class MessageBuilder {

    static final String PROVIDED = "Please provide a name!";
    static final String HELLO = "Hello ";

    String getMessage(String name) {
        StringBuilder result = new StringBuilder();
        if (StringUtils.isBlank(name)) {
            result.append(PROVIDED);
        } else {
            result.append(HELLO).append(name);
        }
        return result.toString();
    }

}
